//
//  RBDZFindViewController.m
//  rubaoduanzi
//
//  Created by 李云飞 on 16/9/13.
//  Copyright © 2016年 liyunfei. All rights reserved.
//

#import "RBDZFindViewController.h"
#import "RBDZButton.h"
#import "RBDZContributeViewController.h"
@interface RBDZFindViewController ()

@end

@implementation RBDZFindViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title=@"发现";
    [self addItem];
    
}
-(void)addItem{
    UIButton *buttonL=[UIButton buttonWithType:UIButtonTypeCustom];
    self.navigationItem.leftBarButtonItem=[RBDZButton barButtonItemWith:buttonL andTarget:self action:@selector(leftBtn) andImageName:@"nav_menu" andHightlightImage:nil];
    UIButton *buttonR=[UIButton buttonWithType:UIButtonTypeCustom];
    self.navigationItem.rightBarButtonItem=[RBDZButton barButtonItemWith:buttonR andTarget:self action:@selector(rightBtn) andImageName:@"nav_fb" andHightlightImage:@"nav_fb_pre"];
    
}

-(void)leftBtn{
//    NSLog(@"%s",__func__);
    RBDZMEViewController *me=[[RBDZMEViewController alloc]init];
    me.hidesBottomBarWhenPushed=YES;
    [self.navigationController pushViewController:me animated:YES];

}
-(void)rightBtn{
//    NSLog(@"%s",__func__);
    RBDZContributeViewController *contribute=[[RBDZContributeViewController alloc]init];
    [self.navigationController pushViewController:contribute animated:YES];
    
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
